package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ProReportContactSheetMapper;
import com.ruoyi.domain.ProReportContactSheet;
import com.ruoyi.service.IProReportContactSheetService;
import com.ruoyi.common.core.text.Convert;

/**
 * 维保报告书联系单Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-07-04
 */
@Service
public class ProReportContactSheetServiceImpl implements IProReportContactSheetService 
{
    @Autowired
    private ProReportContactSheetMapper proReportContactSheetMapper;

    /**
     * 查询维保报告书联系单
     * 
     * @param mId 维保报告书联系单ID
     * @return 维保报告书联系单
     */
    @Override
    public ProReportContactSheet selectProReportContactSheetById(Long mId)
    {
        return proReportContactSheetMapper.selectProReportContactSheetById(mId);
    }

    /**
     * 查询维保报告书联系单列表
     * 
     * @param proReportContactSheet 维保报告书联系单
     * @return 维保报告书联系单
     */
    @Override
    public List<ProReportContactSheet> selectProReportContactSheetList(ProReportContactSheet proReportContactSheet)
    {
        return proReportContactSheetMapper.selectProReportContactSheetList(proReportContactSheet);
    }

    /**
     * 新增维保报告书联系单
     * 
     * @param proReportContactSheet 维保报告书联系单
     * @return 结果
     */
    @Override
    public int insertProReportContactSheet(ProReportContactSheet proReportContactSheet)
    {
        return proReportContactSheetMapper.insertProReportContactSheet(proReportContactSheet);
    }

    /**
     * 修改维保报告书联系单
     * 
     * @param proReportContactSheet 维保报告书联系单
     * @return 结果
     */
    @Override
    public int updateProReportContactSheet(ProReportContactSheet proReportContactSheet)
    {
        return proReportContactSheetMapper.updateProReportContactSheet(proReportContactSheet);
    }

    /**
     * 删除维保报告书联系单对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteProReportContactSheetByIds(String ids)
    {
        return proReportContactSheetMapper.deleteProReportContactSheetByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除维保报告书联系单信息
     * 
     * @param mId 维保报告书联系单ID
     * @return 结果
     */
    @Override
    public int deleteProReportContactSheetById(Long mId)
    {
        return proReportContactSheetMapper.deleteProReportContactSheetById(mId);
    }

    @Override
    public List<ProReportContactSheet> selectProReportContactSheetListById(Long mtId) {
        return proReportContactSheetMapper.selectProReportContactSheetListById(mtId);
    }
}
